home *** CD-ROM | disk | FTP | other *** search
/ Best of www.BestZips.com (Collector's Edition) / Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO / tutorial / adatu311.zip / ALTCHAR.C < prev    next >
C/C++ Source or Header  |  1996-01-10  |  881b  |  31 lines

  1. /*
  2.    ALTCHAR.C   Ver. 3.11   10-JAN-1996
  3.  
  4.    SOFTWARE INNOVATIONS TECHNOLOGY      http://members.aol.com/AdaTutor
  5.    1083 MANDARIN DR NE                  ftp://members.aol.com/AdaTutor
  6.    PALM BAY FL 32905-4706
  7.                                         johnherro@aol.com
  8.    (407) 951-0233                       john.herro%374-38-2@satlink.oau.org
  9.  
  10.    This file is for use with UNIX.ADA.
  11.  
  12.    ALTCHAR.C is a simple solution to the single-character input problem.
  13.    It was sent to us by Mr. Richard Conn, 2700 Bowline Court, Maineville,
  14.    OH 45039.  Software Innovations Technology is grateful to Mr. Conn for
  15.    permission to include ALTCHAR.C with ADA-TUTR.
  16.  
  17.    For this to work, surround the ada_tutr invocation with
  18.       stty raw
  19.       ada_tutr
  20.       stty -raw
  21. */
  22. #include <stdio.h>
  23.  
  24. char onechar()
  25. {
  26.    char c;
  27.  
  28.    c = getchar();
  29.    return (c);
  30. }
  31.